function lovetime() {
    window.setTimeout("lovetime()", 1000);
    var date = new Date("2023-03-26 00:00:00");
    var current = Date();
    var seconds = (Date.parse(current) - Date.parse(date)) / 1000;
    var days = Math.floor(seconds / (3600 * 24));
    seconds = seconds % (3600 * 24);
    var hours = Math.floor(seconds / 3600);
    if (hours < 10) {
        hours = "0" + hours;
    }
    seconds = seconds % 3600;
    var minutes = Math.floor(seconds / 60);
    if (minutes < 10) {
        minutes = "0" + minutes;
    }
    seconds = seconds % 60;
    if (seconds < 10) {
        seconds = "0" + seconds;
    }
    document.getElementById("lovetime").innerHTML = "我们已经认识 " + days + "天" +
        hours + "小时" + minutes + "分钟" + seconds + "秒啦"
}
lovetime()